//
//  OosMultimedia.m
//  Oos4ios
//
//  Created by Pablo Gonzalez on 3/17/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import <oos4ios/Model/OosMultimedia.h>


@implementation OosMultimedia

@dynamic title;
@dynamic urlString;
@dynamic webUrlString;
@dynamic identifier;

@dynamic service;
@dynamic mediaActivities;

@dynamic review;

- (NSURL *)url
{
    NSString *url = [self urlString];
    if (url) {
        return [NSURL URLWithString:url];
    } else {
        return nil;
    }
}

- (void)setUrl:(NSURL *)url
{
    if (!url) {
        self.urlString = nil;
    } else {
        self.urlString = url.absoluteString;
    }
}

- (NSURL *)webUrl
{
    NSString *url = [self webUrlString];
    if (url) {
        return [NSURL URLWithString:url];
    } else {
        return nil;
    }
}

- (void)setWebUrl:(NSURL *)url
{
    if (!url) {
        self.webUrlString = nil;
    } else {
        self.webUrlString = url.absoluteString;
    }
}

@end
